"""
======================
Author: 柠檬班-小简
Time: 2022/11/15 14:16
Project: day14_framwork_V11
Company: 湖南零檬信息技术有限公司
======================
"""
class Data:
    hello = True


dd = Data()

setattr(dd,"name","xj")
setattr(Data, "sex", "female")

print(getattr(dd,"sex"))
